import API from './contants'
import request from '@/utils/request'

// 获取轮播部分数据
export const getSwipeData = () => request({
  url: API.SWIPE_API
})

// 获取商家列表
export const getShopList = ({ latitude = 40.10038, longitude = 116.36867 }) => request({
  url: API.SHOPS_API + '?' + `latitude=${latitude}&longitude=${longitude}`
})
